{%extends 'base.html'%}

            {%block title%}Molex › {{post.title}}{%endblock%}

					  {%block content%}
					  <div id="Content">
                    <div class="box">
                        <div class="cell" style="min-height: 73px;">
                            <div class="fr snow" style="padding-left: 10px; padding-bottom: 10px;">
                                <a href="/member/Livid">
                                    <img src="http://web.me.com/v2ex.livid/v2ex/avatars/1/large/1.png?r=1299485844"
                                    border="0" alt="Livid" />
                                </a>
                            </div>
                            <span class="bigger">
                                <a href="/">{% csrf_token %}
                                    Molex
                                </a>
                                <span class="chevron">
                                    &nbsp;›&nbsp;
                                </span>
                                <a href="/node/{{node.id}}/">
                                    {{node.name}}
                                </a>
                            </span>
                            <h1>
                                {{post.title}}
                            </h1>
                            <small class="fade">
                                By
                                <a href="#" class="dark">
                                    {{post.author}}
                                </a>
                                at {{post.post_time}}, {{post.view_count}} hits
                            </small>
                        </div>
                        <div class="inner">
                            <div class="content topic_content">
                                {{post.content}}
                            </div>
                        </div>
                        <div class="inner">
                            <div class="fr" align="right">
                                <span style="font-size: 10px; line-height: 10px; color: #99a;">
                                    已有 2 人收藏此主题 &nbsp;
                                </span>
                                <a href="/favorite/topic/1288" class="op">
                                    加入收藏
                                </a>
                            </div>
                            &nbsp;
                        </div>
                    </div>
                    <div class="sep20">
                    </div>
                    <div class="box">
                        <div class="cell">
                            <div class="fr">
                                <a href="http://www.v2ex.com/t/9810?r=1">
                                    新回复在前
                                </a>
                                &nbsp;
                                <span class="snow">
                                    |
                                </span>
                                &nbsp;
                                <a href="#">
                                    只看楼主
                                </a>
                            </div>
                            <span class="fade">
                                {{post.comment_count}} 回复 &nbsp;
                                <span class="snow">
                                    |
                                </span>
                                &nbsp; 直到 {{post.post_time}}
                            </span>
                        </div>
                        <div id="replies">
                            
                            {%for comment in comments%}
                            <div class="cell">
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td width="48" valign="top">
                                                <a href="#">
                                                    <img src="/static/6999.png" border="0" alt="aisk">
                                                </a>
                                            </td>
                                            <td width="10">
                                            </td>
                                            <td width="auto" valign="top">
                                                <div class="fr" id="reply_76489_buttons">
                                                    <strong>
                                                        <small class="snow">{{user}}
                                                            #{{forloop.counter}} - 0 minutes ago &nbsp;
                                                            <img src="/static/reply.png" align="absmiddle" border="0" alt="回复 aisk"
                                                            onclick="replyOne(&#39;aisk&#39;)" class="clickable">
                                                            <span class="ops">
                                                            </span>
                                                        </small>
                                                    </strong>
                                                </div>
                                                <div class="sep3">
                                                </div>
                                                <strong>
                                                    <a href="/i/{{comment.author_id}}/" class="dark">
                                                        {{comment.author}}
                                                    </a>
                                                </strong>
                                                <div class="sep5">
                                                </div>
                                                <div class="content reply_content">
                                                    {{comment.content}}
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            {%endfor%}
                            
                            <div class="inner"></div>
                            
                            
                        </div>
                    </div>
                    <div class="sep20">
                    </div>
                    
                    
                    {%if user.is_authenticated%}
                    <script type="text/javascript">
                        function v() {
                            r = document.getElementById('content');
                            if (r.value.length == 0) {
                                e = document.getElementById('e');
                                e.innerHTML = "回复内容不能为空";
                                return false;
                            }
                        }

                        function c() {
                            e = document.getElementById('e');
                            if (e.innerHTML.length > 0) {
                                e.innerHTML = '';
                            }
                        }
                    </script>
                    <div class="box">
                        <form action="" method="post" onsubmit="return v()">
                            {% csrf_token %}
                            <div class="cell">
                                <div class="fr fade">
                                    ⬆
                                    <a href="#_top" class="dark">
                                        回到顶部
                                    </a>
                                </div>
                                <span class="fade">
                                    现在添加一条回复
                                </span>
                            </div>
                            <div class="cell">
                                <textarea class="mll" name="content" id="content" onkeyup="c();"></textarea>
                                <div class="sep10">
                                </div>
                                <div class="fr fade" id="e">
                                </div>
                                <input type="submit" class="super normal button" value="发送">
                            </div>
                        </form>
                        <div class="inner">
                            <span class="fade" style="line-height: 200%;">
                                请尽量避免无要点，无信息量的回复，如“沙发”和“顶”，节约自己和他人的宝贵时间是一种美德。
                                <div class="sep10">
                                </div>
                                与其与人争吵，不如将其屏蔽。
                            </span>
                        </div>
                    </div>
                    {%endif%}
                </div>
                {%endblock%}